//
//  CharacterModel.h
//  us
//
//  Created by karry on 2025/4/1.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN


typedef NS_ENUM(NSInteger, CharacterType) {
    Character_hair       = 0,
    Character_eyes       = 1,
    Character_mouth      = 2,
    Character_clothes    = 3,
    Character_face       = 4,
    Character_asset      = 5,
};




@interface CharacterUnitModel : NSObject

@property (nonatomic, assign) CharacterType type;

//优先取本地
@property (nonatomic, strong) NSString *icon;
//远程头像
@property (nonatomic, strong) NSString *url;

@end


@interface CharacterModel : NSObject
//用来存贴纸对象
@property (nonatomic, assign) CharacterType type;
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *icon;
@property (nonatomic, strong) NSArray <CharacterUnitModel *>*units;

@end



@interface UserPartsModel : NSObject

@property (nonatomic, assign) NSInteger timestamp;
@property (nonatomic, strong) NSArray <CharacterUnitModel *>*parts;
@property (nonatomic, strong) NSArray <CharacterUnitModel *>*relParts;

@end


NS_ASSUME_NONNULL_END
